/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Modèle;

import java.util.Date;

/**
 *
 * @author Valentin
 */
public final class Contact {
    
   public String firstName;
   public String lastName;
   public String companyAdress;
   public String personalPhone;
   public String profesionnalPhone;
   public String homePage;
   public String email;
   public String photo;
   public Boolean amis;
   public Boolean famille;
   public Boolean collegues;
   public String date;
   
    public Contact()
    {
        
    }
   
    public Contact(String firstName, String lastName, String companyAdress, String personalPhone,
                    String profesionnalPhone, String homePage, String email, String photo, Boolean amis, Boolean famille, Boolean collegues)
    {
        this.firstName = firstName;
        this.lastName = lastName;
        this.companyAdress = companyAdress;
        this.personalPhone = personalPhone;
        this.profesionnalPhone = profesionnalPhone;
        this.homePage = homePage;
        this.email = email;
        this.photo = photo;
        this.amis = amis;
        this.famille = famille;
        this.collegues = collegues;
        
        Long date2 = new Date().getTime();
        this.date = date2.toString();
    }
    
    public Contact(String firstName, String lastName, String companyAdress, String personalPhone,
                    String profesionnalPhone, String homePage, String email, String photo, Boolean amis, Boolean famille, Boolean collegues, String date)
    {
        this.firstName = firstName;
        this.lastName = lastName;
        this.companyAdress = companyAdress;
        this.personalPhone = personalPhone;
        this.profesionnalPhone = profesionnalPhone;
        this.homePage = homePage;
        this.email = email;
        this.photo = photo;
        this.amis = amis;
        this.famille = famille;
        this.collegues = collegues;        
        this.date = date;
    }
    
    
    public void modifierContact(String firstName, String lastName, String companyAdress, String personalPhone,
                    String profesionnalPhone, String homePage, String email, String photo, Boolean amis, Boolean famille, Boolean collegues)
    {
        this.firstName = firstName;
        this.lastName = lastName;
        this.companyAdress = companyAdress;
        this.personalPhone = personalPhone;
        this.profesionnalPhone = profesionnalPhone;
        this.homePage = homePage;
        this.email = email;
        this.photo = photo;
        this.amis = amis;
        this.famille = famille;
        this.collegues = collegues;
        
        System.out.println("Contact modifié");
    }
    
    
    
    
    public void afficherContact()
    {  
        System.out.println("_______________________");
        System.out.println(this.firstName);
        System.out.println(this.lastName);
        System.out.println(this.companyAdress);
        System.out.println(this.personalPhone);
        System.out.println(this.profesionnalPhone);
        System.out.println(this.homePage);
        System.out.println(this.email);
        System.out.println(this.photo);
        System.out.println("_______________________");
    }
    
    
    
    
    
}
